﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LP580.CG;
using System.Text;

public partial class ascx_CompanyHistory : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        StringBuilder sb = new StringBuilder();
        if (Request.Cookies["fav"] != null && Request.Cookies["fav"]["c"] != null)
        {
            string[] uids = Request.Cookies["fav"]["c"].Split(',');
            foreach (string id in uids)
            {
                if (Utils.CheckNum(id))
                {
                    clsUserCompanyInfo cls = new clsUserCompanyInfo(Convert.ToInt32(id));
                    sb.AppendFormat("<tr><td align='center'><a href='Company.aspx?u={1}' target='_blank'><img src='{0}' width='124' height='55' class='logoboder'></a></td></tr>", cls.CompanyLogo, cls.UserID);
                    sb.AppendFormat("<tr><td height='29' align='center'><a href='Company.aspx?u={1}' target='_blank'>{0}</a></td></tr>", cls.CompanyName, cls.UserID);
                }
            }
        }
        else
        {
            sb.Append("<tr><td align='center'>当前未有浏览记录!</td></tr>");
        }
        litcon.Text = sb.ToString();
    }
}